# 2.打印1~100所有的偶数
for a in range(2,101,2):
    print(a)
# 3.打印1~100所有数的和
sum3=0
for a in range(1,101,1):
    sum3+=a
print(sum3)
# 4.打印1~20所有数的乘积
sum4=1
for a in range(1,21,1):
    sum4=a*sum4
print(sum4)
# 5.打印1~30所有数的平方的和
sum5=0
for a in range(1,31,1):
    sum5+=a*a
print(sum5)
# 6.打印1~50所有奇数的和
sum6=0
for a in range(1,51,2):
    sum6+=a
print(sum6)
# 7.打印1~20所有奇数的乘积
sum7=1
for a in range(1,21,2):
    sum7*= a
print(sum7)
# 8.打印1~40所有奇数的平方的和
sum8=0
for a in range(1,41,2):
    sum8+= a*a
print(sum8)
# 9.打印200~300所有数的和
sum9=0
for a in range(200,301,1):
    sum9+= a
print(sum9)
# 10.打印 1-100之内小于等于30 和 大于等于 70的所有数
for a in range(1,101,1) :
    if a<=30 or a>=70:
        print(a)